package com.zygh.policeasset.pojo;

import cn.afterturn.easypoi.util.PoiElUtil;
import java.util.List;

/* loaded from: police-asset-2.0-0.0.1-SNAPSHOT.jar:BOOT-INF/classes/com/zygh/policeasset/pojo/AssetsClassification.class */
public class AssetsClassification {
    private Integer id;
    private Integer pid;
    private String name;
    private String serialNumber;
    private List<AssetsClassification> child;

    public void setId(Integer id) {
        this.id = id;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setSerialNumber(String serialNumber) {
        this.serialNumber = serialNumber;
    }

    public void setChild(List<AssetsClassification> child) {
        this.child = child;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof AssetsClassification)) {
            return false;
        }
        AssetsClassification other = (AssetsClassification) o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$id = getId();
        Object other$id = other.getId();
        if (this$id == null) {
            if (other$id != null) {
                return false;
            }
        } else if (!this$id.equals(other$id)) {
            return false;
        }
        Object this$pid = getPid();
        Object other$pid = other.getPid();
        if (this$pid == null) {
            if (other$pid != null) {
                return false;
            }
        } else if (!this$pid.equals(other$pid)) {
            return false;
        }
        Object this$name = getName();
        Object other$name = other.getName();
        if (this$name == null) {
            if (other$name != null) {
                return false;
            }
        } else if (!this$name.equals(other$name)) {
            return false;
        }
        Object this$serialNumber = getSerialNumber();
        Object other$serialNumber = other.getSerialNumber();
        if (this$serialNumber == null) {
            if (other$serialNumber != null) {
                return false;
            }
        } else if (!this$serialNumber.equals(other$serialNumber)) {
            return false;
        }
        Object this$child = getChild();
        Object other$child = other.getChild();
        return this$child == null ? other$child == null : this$child.equals(other$child);
    }

    protected boolean canEqual(Object other) {
        return other instanceof AssetsClassification;
    }

    public int hashCode() {
        Object $id = getId();
        int result = (1 * 59) + ($id == null ? 43 : $id.hashCode());
        Object $pid = getPid();
        int result2 = (result * 59) + ($pid == null ? 43 : $pid.hashCode());
        Object $name = getName();
        int result3 = (result2 * 59) + ($name == null ? 43 : $name.hashCode());
        Object $serialNumber = getSerialNumber();
        int result4 = (result3 * 59) + ($serialNumber == null ? 43 : $serialNumber.hashCode());
        Object $child = getChild();
        return (result4 * 59) + ($child == null ? 43 : $child.hashCode());
    }

    public String toString() {
        return "AssetsClassification(id=" + getId() + ", pid=" + getPid() + ", name=" + getName() + ", serialNumber=" + getSerialNumber() + ", child=" + getChild() + PoiElUtil.RIGHT_BRACKET;
    }

    public AssetsClassification(Integer id, Integer pid, String name, String serialNumber, List<AssetsClassification> child) {
        this.id = id;
        this.pid = pid;
        this.name = name;
        this.serialNumber = serialNumber;
        this.child = child;
    }

    public AssetsClassification() {
    }

    public Integer getId() {
        return this.id;
    }

    public Integer getPid() {
        return this.pid;
    }

    public String getName() {
        return this.name;
    }

    public String getSerialNumber() {
        return this.serialNumber;
    }

    public List<AssetsClassification> getChild() {
        return this.child;
    }
}